<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
    <head>
        <title>ServletContext</title>
    </head>
    <body>

        <h3>ServletContext</h3>

        <ul>
            <li>
                <a href="${pageContext.servletContext.contextPath}/counter.jsp">JSP版计数器</a>
            </li>
            <li>
                <a href="${pageContext.request.contextPath}/counter">Servlet版计数器</a>
            </li>
            <li>
                <a href="${pageContext.request.contextPath}/app">application servlet</a>
            </li>
            <li>
                <a href="${pageContext.request.contextPath}/init/param">Web Application初始化参数</a>
            </li>
            <li>
                <a href="${pageContext.request.contextPath}/welcome">转发</a>
            </li>
        </ul>

    </body>
</html>
